Component({
    properties: {
        datas: {
            type: null
        },
        component_id: {
            type: null
        }
    },
    data: {
        emptyImage: "https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/image.png",
        clientWidth: "375"
    },
    lifetimes: {
        attached: function() {
            this.setData({
                "datas.html_value": this.handleImage(this.data.datas.html_value)
            });
        },
        moved: function() {},
        detached: function() {}
    },
    attached: function() {},
    ready: function() {},
    pageLifetimes: {
        show: function() {},
        hide: function() {},
        resize: function() {}
    },
    methods: {
        handleImage: function(t) {
            return t.replace(/\<img/g, '<img style="max-width:100%;height:auto;display:block;margin:10px 0; "');
        }
    }
});